package hjt.com.module.main.utils;

import android.content.Context;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

/**
 * created by Admin
 * created on 2020/6/10
 */
public class MyJavascriptInterface {

    private Context context;

    public MyJavascriptInterface(Context context) {
        this.context = context;
    }

    @JavascriptInterface
    public void test(String msg){
        Toast.makeText(context,msg,Toast.LENGTH_SHORT).show();
    }
}
